Practice Test


Q1) The While statement can be written at the beginning of or end of the Do statement . Show Answer


Q2) While and Until statements can be used at the same time in a Do statement. Show Answer


Q3) The statements in the Do/While loop are executed if the condition is true. Show Answer


Q4) The statements in the Do/Until loop are executed if the condition is true. Show Answer


Q5) The body of Do Until is executed only if the loop continuation test is True. Show Answer


Q6) In the For/Next loop, the default step value is 1. Show Answer


Q7) We can change the value of the index variable inside the body of the For/Next loop. Show Answer


Q8) If the step value is positive, then the For/Next loop is executed as long as the following condition is satisfied : initial-value<= final-value Show Answer


Q9) In a MessageBox function, it is not possible to determine which button was pressed by the user. Show Answer


Q10) Infinite loops keep repeating until the program is interrupted. Show Answer


Q11) In a For-Next loop, the index variable (or counter variable) must be numeric. Show Answer


Q12) The Step increment part of the For-Next loop is compulsory. Show Answer


Q13) A pretest loop always performs at least one iteration, even if the test expression is false from the beginning. Show Answer


Q14) The Do While statement marks the beginning of a Do While loop, and the Loop statement marks the end. The statements in between are known as the _______ of the loop. Show Answer


Q15) A (n) __________ loop evaluates its test expression before each iteration Show Answer


Q16) The _______ loop is idea for situations that require a counter because it is specifically designed to initialize, test and increment a counter variable. Show Answer